#{extends 'frame.html' /}

#{set title:'公告管理' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/notice.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/datePicker.css'}" />

#{/set}

<div class="contentCard">

	<div class="contentTitle">

		公告列表

		<span class="btnSection">

		<a href="/admin/notice/add" target="_blank" class="grey btn">+添加新公告</a>

	</span>

	</div>

	<div id="taskFilterPanel">

		<div class="clearfix mb10">

			<span class="floatLeft mr10">对象</span>

			<select class="floatLeft mr10" id="selRole">

				<option value="">全部</option>

				<option value="ALL">买手/商家</option>

				<option value="BUYER">买手</option>

				<option value="SELLER">商家</option>

			</select>

			<span class="floatLeft mr10">类型</span>

			<select class="floatLeft mr10" id="selType">

				<option value="">全部</option>

				<option value="DEFAULT">默认</option>

				<option value="COURSE">教程</option>

			</select>

			<span class="floatLeft mr10">标题</span>

			<input type="text" id="txtTitle" class="floatLeft mr10 inputText" />

		</div>

		<div class="clearfix">

			<div class="cal-content">

				<span class="floatLeft mr10">发布时间</span>

				<span class="floatLeft mr10 cal-date-input">

					<input class="inputDate start-date" id="regTimeStart" readonly="readonly" value=""  />

				</span>

				<span class="floatLeft mr10 med-cal-split">-</span>

				<span class="floatLeft mr10 cal-date-input">

					<input class="inputDate end-date" id="regTimeEnd" readonly="readonly" value="" />

				</span>

				<span class="floatLeft mr10">状态</span>

				<select class="floatLeft mr10" id="isDisplay">

					<option value="">全部</option>

					<option value="true">显示</option>

					<option value="false">隐藏</option>

				</select>

				<a class="stdColorButton floatLeft queryBtn" href="javascript:;" id="btnQuery">查询</a>

			</div>	

		</div>

	</div>

	<div class="mt20">

		<table class="normTable" id="noticeListTable">

			<thead>

				<tr>

					<td style="width:10%">ID</td>

					<td style="width:45%">标题</td>

					<td style="width:15%">创建时间</td>

					<td style="width:15%">修改时间</td>

					<td style="width:15%">操作</td>

				</tr>

			</thead>

			<tbody></tbody>

		</table>

		<div id="noMsg">

			<div class="warnBox">

				<span class="iconfont">&#xf00b6;</span>

				没有公告!

			</div>

		</div>

		<div class="pagin-btm clearFix"style="display:none;">

			<div class="pagination"></div>

		</div>

		<div class="popWrapper" style="display:none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />

		</div>

	</div>

</div>



<textarea class="muban" id="rowTemp">

	{{#results}}

	<tr>

		<td>{{id}}</td>

		<td>

			<div class="tdLeft"><em><a href="/admin/notice/{{id}}" target="_blank" class="tdTitle black">{{title}}</a></em></div>

		</td>

		<td>{{createtime}}</td>

		<td>{{modifytime}}</td>

		<td data-uid="{{id}}">

			<input type="button" class="btnRowEdit" value="编辑" data-id="{{id}}" />

			{{#isDisplay}}

			<input type="button" class="btnRowDisplay" value="隐藏" data-id="{{id}}" isDisplay="false"/>

			{{/isDisplay}}

			{{^isDisplay}}

			<input type="button" class="btnRowDisplay" value="显示" data-id="{{id}}" isDisplay="true"/>

			{{/isDisplay}}

			<input type="button" class="btnShowTop" value="置顶" data-id="{{id}}" />

		</td>

	</tr>

	{{/results}}

</textarea>

#{set 'moreScripts'}

<script src="@{'/public/javascripts/date.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.datePicker.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/admin/notice.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'notice';</script>

#{/set}